package com.yytek.common.client.net.model;




import com.yytek.common.client.net.model.base.BaseMqttRequest;

import java.util.Map;

/**
 * 设备服务调用
 */
public class ServiceInvoke extends BaseMqttRequest {
    /**
     * 服务调用参数。包含服务标识符和服务的值
     */
    private Map<String, Object> params;

    String serrviceIdentifier = "service.invoke.${identifier}";
    /**
     * 设置调用服务名称
     * @param method
     */
    @Override
    public void setMethod(String method) {
        //替换方法名称
        method = serrviceIdentifier.replace("${identifier}",method);
        super.setMethod(method);
    }


    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
